/*
* @Author: weiwang
* @Date:   2018-11-27 20:04:43
* @Last Modified by:   weiwang
* @Last Modified time: 2018-11-27 20:04:43
*/
import Taro, { Component } from '@tarojs/taro'
import { View, Text } from '@tarojs/components'

import PropTypes from 'prop-types'

import { IProps, IState } from './schemas'

import './index.scss'

export default class extends Component<IProps, IState> {

    render() {
        return (
            <View className='YTableDivider'>
                <View className='title'>
                    <View className='line' />
                    <Text className='text'>
                        {this.props.title}
                    </Text>                    
                </View>
            </View>
        )
    }

    static propTypes = {
        title: PropTypes.string
    }

    static defaultProps = {
        title: ''
    }

}